export default [
  { path: '/', name: '主页', icon: 'api', component: './Index' },
  { path: '/interface_info/:id', name: '查看接口', icon: 'smile', component: './InterfaceInfo', hideInMenu: true },
  {
    name: '个人中心',
    icon: 'user',
    path: '/account/center',
    component: './account/center',
  },
  {
    name: '我的订单',
    path: '/order',
    icon: 'containerOutlined',
    component: './Order',
  },
  {
    path: '/user',
    layout: false,
    routes: [
      {name: '登录', path: '/user/login', component: './User/Login' },
      {name: '注册', path: '/user/register', component: './User/Register'},
    ],
  },
  // {
  //   path: '/admin',
  //   name: '管理页',
  //   icon: 'crown',
  //   // access: 'canAdmin',
  //   routes: [
  //     { name: '接口管理', icon: 'table', path: '/admin/interface_info', component: './Admin/InterfaceInfo' },
  //     { name: '接口分析', icon: 'table', path: '/admin/interface_analysis', component: './Admin/InterfaceAnalysis' },
  //   ],
  // },
  {
    name: '接口管理',
    icon: 'BarsOutlined',
    path: '/admin/interface_info',
    component: './Admin/InterfaceInfo',
  },
  {
    name: '接口分析',
    icon: 'PieChartOutlined',
    path: '/admin/interface_analysis',
    component: './Admin/InterfaceAnalysis',
    access: 'canAdmin',
  },

  // { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
